package com.entity;

import org.apache.struts.action.ActionForm;

import com.util.DateUtils;

/**
 * Rypx entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Rypx extends ActionForm  implements java.io.Serializable {

	// Fields

	private Integer id;
	private Ryzl ryzl;
	private Long pxrq;
	private String pxnr;
	private String bz;

	String pxrqString; 
	public String getPxrqString() {
		if(pxrq!=null){
			return DateUtils.DateToString(DateUtils.longToDate(pxrq));
		}else{
			return "";
		}
	}

	public void setPxrqString(String pxrqString) {
		this.pxrqString = pxrqString;
	}
	// Constructors

	/** default constructor */
	public Rypx() {
	}

	/** full constructor */
	public Rypx(Ryzl ryzl, Long pxrq, String pxnr, String bz) {
		this.ryzl = ryzl;
		this.pxrq = pxrq;
		this.pxnr = pxnr;
		this.bz = bz;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Ryzl getRyzl() {
		return this.ryzl;
	}

	public void setRyzl(Ryzl ryzl) {
		this.ryzl = ryzl;
	}

	public Long getPxrq() {
		return this.pxrq;
	}

	public void setPxrq(Long pxrq) {
		this.pxrq = pxrq;
	}

	public String getPxnr() {
		return this.pxnr;
	}

	public void setPxnr(String pxnr) {
		this.pxnr = pxnr;
	}

	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

}